package $packageName.service.impl;

import $packageName.mapper.$mapperName;
import $packageName.service.$serviceName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class $serviceImplName implements $serviceName {

    private final $mapperName $mapperInstance;

    @Autowired
    public $serviceImplName($mapperName $mapperInstance) {
        this.$mapperInstance = $mapperInstance;
    }

    // 示例方法
    @Override
    public List<Object> getAll() {
        return $mapperInstance.getAll();
    }
}